 
cmake_minimum_required (VERSION 3.12)
set(prj "csLua")
project (${prj})

 #预编译宏定义
###  MSVC++ 14.0  _MSC_VER == 1900 (Visual Studio 2015 version 14.0)
###  MSVC++ 14.16 _MSC_VER == 1916 (Visual Studio 2017 version 15.9)
add_definitions(-D _MSC_VER=1930) 



#include_directories( D:/gitHub/cpp/cppLua_work/lzma ) 
#include_directories( D:/gitHub/cpp/cppLua_work/miniscryer/luajit-2.1/src)
#include_directories( D:/gitHub/cpp/cppLua_work/miniscryer/prj/luavm )
#link_directories( D:/gitHub/cpp/cppLua_work/miniscryer/prj/cpp_dll/cpp_dll/Plugins/x86_64 ) 

file(GLOB_RECURSE  srccode 
	csLua_test02.c 
	read.c
	src/cslua/*.h 

	src/cslua/*.c  

	../../../cpp_gameserver/src/cLibrary/*.h 
	../../../cpp_gameserver/src/cLibrary/*.c
#	../../../cppLua_work/miniscryer/prj/luavm/tools/cpp_fix.c
	) 

# 将源代码添加到此项目的可执行文件。
add_executable (${prj} ${srccode})
#add_library(${prj} SHARED ${srccode})


# TODO: 如有需要，请添加测试并安装目标。

#target_link_libraries(${prj} lzma tolua ws2_32) 